var admin_project = {
	query : function(self) {
		var pageInex = jQuery(self).attr("data-dt-idx");
		if (pageIndex == null || pageInex == "") {
			pageInex = 1;
		}
		$("#pageIndex").val(pageInex);
		jQuery("#projectQuery").submit();
	},
	projectAdd : function(title, url, id) {
		window.location.href=url;
	},
	article_shenhe:function(url){
		window.location.href=url;
	},
	article_del:function(url){
		layer.confirm('案例删除须谨慎，确认要删除吗？',function(index){
			//此处请求后台程序，下方是成功后的前台处理……
			$.ajax({
				url:url,
				type:"POST",
				dataType:"json",
				success:function(data){
					if(data.success=='0'){
						layer.msg('删除成功!',{icon:1,time:1000});
						window.location.reload();
					}else{
						layer.msg('删除失败!',{icon:1,time:1000});
					}
				},
				error:function(){
					layer.msg('系统错误,请稍后重试!',{icon:1,time:1000});
				}
			});
			
			//$(obj).parents("tr").remove();
			layer.msg('已删除!',{icon:1,time:1000});
		});
	}
};